package com.tchhy.provider.api

import com.tchhy.provider.URLConstant
import com.tchhy.provider.data.partner.MedicineKitApplyInfo
import com.tchhy.provider.data.common.BaseResp
import com.tchhy.provider.data.common.EmptyResp
import com.tchhy.provider.data.healthy.response.CheckCaptchaRes
import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * @author: admin
 * @date: 2019/8/20
 * @des:接口
 *
 **/
interface CommonApi {

    /**
     * @description 药箱申请获取数量的接口
     * @param
     * @return
     * @author admin
     * @time 2019/8/20
     */
    @POST
    fun getMedicineKitApplyAccount(@Body body: RequestBody): Observable<BaseResp<MedicineKitApplyInfo>>


    /**
     * @description 安全退出登录
     * @param
     * @return
     * @author admin
     * @time 2019/8/20
     */
    @POST(URLConstant.LOGINOUT)
    fun logout(): Observable<EmptyResp>


    /**
     *@description 发送验证码
     * @param
     * @return
     * @author admin
     * @time 2019/8/20
     */
    @POST(URLConstant.SEND_SMS)
    fun sendCaptcha(@Body body: RequestBody): Observable<EmptyResp>


    /**
     * @description 校验验证码
     * @param
     * @return
     * @author admin
     * @time 2019/8/20
     */
    @POST(URLConstant.CHECK_SMS)
    fun checkCaptcha(@Body body: RequestBody): Observable<BaseResp<CheckCaptchaRes>>


}